package com.tzpay.tzpay.ui.activity;

import android.os.Bundle;

import com.tzpay.tzpay.R;
import com.tzpay.tzpay.bean.OrderInfo;
import com.tzpay.tzpay.ui.BaseActivity;
import com.tzpay.tzpay.ui.fragment.TradeDetailFragment;

/**
 * Created by chenfeiyue on 16/4/11.
 */
public class TradeDetailActivity extends BaseActivity {
    @Override
    public void setupContentView() {
        setContentView(R.layout.activity_content);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setHasAppBar(false);
        changeTitle(getString(R.string.trade_detail_title));
        OrderInfo info = getIntent().getParcelableExtra("order_info");
        TradeDetailFragment fragment = TradeDetailFragment.instance(info);
        changeFragment(fragment, R.id.fragment_content);
    }
}
